<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<% String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/"; %> 
<html>
<jsp:include page="../head.jsp"></jsp:include>
<body>
<br/><br/><br/><a href='../TbUserRoleMiddleServlet?method=showadd'>添加</a><br/>
<table>
<tr>
    <td>用户编号</td>
    <td>角色编号</td>
    <td>添加时间</td>
    <td>修改</td>
    <td>删除</td>
</tr>
<c:forEach items="${sessionScope.tbUserRoleMiddleList==null?'':sessionScope.tbUserRoleMiddleList}" var="tbUserRoleMiddle" varStatus="status">
<tr>
    <td>${tbUserRoleMiddle.userId}</td>
    <td>${tbUserRoleMiddle.roleId}</td>
    <td>${tbUserRoleMiddle.createTime}</td>
    <td><a href='../TbUserRoleMiddleServlet?method=listById&userRoleMiddleId=${tbUserRoleMiddle.userRoleMiddleId}'>修改</a></td>
    <td><a href='javascript:void(0);' onclick='if(confirm("确定要删除?"))window.location="../TbUserRoleMiddleServlet?method=del&delIds=${tbUserRoleMiddle.userRoleMiddleId}'>删除</a></td>
</tr>
</c:forEach>
</table>
<jsp:include page="../foot.jsp"></jsp:include>
</body></html>